Skip to content

legacy: Arduino preprocess subroutine refactorization #2147

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 42 commits into from

Conversation

cmaglie
Copy link
Member

@cmaglie cmaglie commented Apr 12, 2023

Please check if the PR fulfills these requirements

See how to contribute

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)
  • configuration.schema.json updated if new parameters are added.

What kind of change does this PR introduce?

It takes the sketch preprocessing out of the legacy package, hopefully making it more readable and straightforward.
This is part of the bigger task #1486.

What is the current behavior?

No changes in behavior (hopefully :-))

What is the new behavior?

Does this PR introduce a breaking change, and is titled accordingly?

Other information

This PR (will be/has been) split into smaller PR:

@cmaglie cmaglie added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Apr 12, 2023
@cmaglie cmaglie self-assigned this Apr 12, 2023
@cmaglie cmaglie force-pushed the cpp-preprocess-refactor branch from f9cb4ba to aa97f8d Compare April 26, 2023 15:44
@cmaglie cmaglie force-pushed the cpp-preprocess-refactor branch 2 times, most recently from bdcdbb9 to d5fa620 Compare April 26, 2023 16:52
@cmaglie cmaglie force-pushed the cpp-preprocess-refactor branch from 39042ea to 651b371 Compare April 26, 2023 17:19
@codecov
Copy link

codecov bot commented Apr 26, 2023

Codecov Report

Patch coverage: 80.84% and project coverage change: -0.12 ⚠️

Comparison is base (0b77c0a) 62.45% compared to head (651b371) 62.34%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2147      +/-   ##
==========================================
- Coverage   62.45%   62.34%   -0.12%     
==========================================
  Files         224      219       -5     
  Lines       19520    19392     -128     
==========================================
- Hits        12191    12089     -102     
+ Misses       6231     6205      -26     
  Partials     1098     1098              
Flag Coverage Δ
unit 62.34% <80.84%> (-0.12%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

Impacted Files Coverage Δ
...egacy/builder/add_additional_entries_to_context.go 62.50% <ø> (+1.20%) ⬆️
legacy/builder/create_cmake_rule.go 9.09% <0.00%> (+0.28%) ⬆️
legacy/builder/preprocess_sketch.go 0.00% <0.00%> (ø)
legacy/builder/types/context.go 97.53% <ø> (ø)
legacy/builder/utils/utils.go 45.92% <33.33%> (-9.75%) ⬇️
arduino/builder/sketch.go 54.03% <53.33%> (-3.60%) ⬇️
arduino/builder/preprocessor/ctags.go 77.12% <77.12%> (ø)
legacy/builder/container_find_includes.go 70.28% <78.26%> (-0.68%) ⬇️
arduino/builder/preprocessor/gcc.go 79.06% <79.06%> (ø)
...preprocessor/internal/ctags/ctags_to_prototypes.go 88.88% <85.71%> (ø)
... and 16 more

... and 1 file with indirect coverage changes

☔ View full report in Codecov by Sentry.
📢 Do you have feedback about the report comment? Let us know in this issue.

@cmaglie
Copy link
Member Author

cmaglie commented Jun 1, 2023

Merged through other PRs.

@cmaglie cmaglie closed this Jun 1, 2023
@cmaglie cmaglie deleted the cpp-preprocess-refactor branch June 1, 2023 07:30
@per1234 per1234 added the conclusion: duplicate Has already been submitted label Aug 13, 2023
@cmaglie cmaglie changed the title [skip-changelog] legacy: Arduino preprocess subroutine refactorization legacy: Arduino preprocess subroutine refactorization Sep 6, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
conclusion: duplicate Has already been submitted topic: code Related to content of the project itself type: enhancement Proposed improvement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants